<?php defined('_JEXEC') or die('Restricted access'); ?>
<h1>
	<?php 
	JText::printf("SIGNUP"); 
	echo ", "; 
	JText::printf($this->eventType->display_name);
	echo " - ";
	JText::printf("MEMBER");
	echo " ";
	JText::printf($this->member->name);
	?>
</h1>
<h2><?php echo JHTML::date($this->event->date);?></h2>
<p><?php echo $this->event->description_html ?></p>
<p>
	<?php 
	JText::printf("HEAD_CHEF");
	echo ":&nbsp;".$this->event->organiser_description 
	?>
</p>
<form action="<?php echo $this->baseurl ?>/index.php" method="post">
<table>
	<?php 
	foreach ($this->categoryList as $category) {
		?>
		<tr>
			<td>
				<?php 
				JText::printf($category->display_name); 
				?>
			</td>
			<td><?php echo $this->lists[$category->id] ?></td>
		</tr>
		<?php 
	}
	?>
</table>
<button type="submit"><?php JText::printf("SAVE"); ?></button>
<button type="button" onclick="this.form.task.value='cancel';this.form.submit()"><?php JText::printf("CANCEL"); ?></button>
<input type="hidden" name="option" value="<?php echo $this->option; ?>" />
<input type="hidden" name="view" value="signup" />
<input type="hidden" name="task" value="save" />
<input type="hidden" name="event_id" value="<?php echo $this->event->id; ?>" />
<input type="hidden" name="group_id" value="<?php echo $this->event->group_id; ?>" />
<input type="hidden" name="participant_vars" value="<?php echo implode(",", $this->partVarNameArray); ?>" />
</form>